﻿@model AdventureWorks.Entities.Address

@{
    ViewBag.Title = "Delete";
}

<h2>Address Of: @Html.ActionLink(Model.Customers.Single().FullName, "Details", "Customer", new { id = Model.Customers.Single().ID }, null)</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Address</legend>

    <div class="display-label">AddressLine1</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AddressLine1)
    </div>

    <div class="display-label">AddressLine2</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AddressLine2)
    </div>

    <div class="display-label">City</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.City)
    </div>

    <div class="display-label">StateProvince</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StateProvince)
    </div>

    <div class="display-label">CountryRegion</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CountryRegion)
    </div>

    <div class="display-label">PostalCode</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PostalCode)
    </div>

    <div class="display-label">ModifiedDate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ModifiedDate)
    </div>

    <div class="display-label">AddressLines</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AddressLines)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
